import fetch from "@/utils/request"
const BASR_URL = "/bl-user";
export const loginApi = async(data)=>{
    return await fetch({
        method:"post",
        data,
        url:"/bl-user/login"
    })
}


export const queryUserList = (data)=>{
    return fetch({
        url:BASR_URL + "/queryUserList",
        method:"post",
        data
    })
}

export const queryRoleList=(data)=>{
    return fetch({
        url:BASR_URL + "/queryRoleList",
        method:"post",
        data
    })
}

export const getUserInfoApi =() =>{
    return fetch({
        url:BASR_URL+"/userinfo",
        method:"get",
    })
} 


export const modifyUserById = (data)=>{
    return fetch({
        url:BASR_URL+"/modify",
        method:"post",
        data,
    })
}


export const modifyPwd = (data)=>{
    return fetch({
        url:BASR_URL + "/modifyPwd",
        method:"post",
        data,
    })
}